# 输入一个数n, 再获取n个数代表成绩, 判断是否及格, 如果及格就打印yes, 不及格打印no
a = 0
n = int(input())
while a < n:
    f = int(input())
    if f > 60:
        print("yes")
    else:
        print("no")
    a += 1


